﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<title>jQuery美化Select下拉框 - 站长素材</title>

<link rel="stylesheet" type="text/css" href="../css/selectFilter.css" />
<style type="text/css">
	body {
		padding: 30px;
	}
	
	.item {
		width: 240px;
		height: 32px;
		margin: 100px auto;
	}
</style>

</head>
<body>

<div class="item">
	
	<!-- 这里开始 -->
	
	<div class="filter-box">
		<div class="filter-text">
			<input class="filter-title" type="text" readonly placeholder="pleace select" />
			<i class="icon icon-filter-arrow"></i>
		</div>
		<select name="filter">
			<option value="new" disabled>最新的</option>
			<option value="unaudited">未审核</option>
			<option value="nothrough" selected>未通过</option>
			<option value="audit">正在审核</option>
			<option value="audited">已审核</option>
			<option value="passed">已通过</option>
			<option value="1">111</option>
			<option value="2">222</option>
			<option value="3">333</option>
			<option value="4">444</option>
			<option value="5">555</option>
			<option value="6">666</option>
		</select>
	</div>
	
	<!-- 这里结束 -->
	
</div>

<!--
	
	select   --  name 可以接收选择的值【用于表单提交  名称自定义】
	
	option   --  1.  value    传给后台的参数
				 1.  selected 设置默认选中
				 2.  disabled 设置禁止选则

-->

<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/selectFilter.js"></script>
<script type="text/javascript">
	//本小插件支持移动端哦
	
	//这里是初始化
	$('.filter-box').selectFilter({
		callBack : function (val){
			//返回选择的值
			console.log(val+'-是返回的值')
		}
	});
</script>

<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器：IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗.</p>
<p>来源：<a href="http://sc.chinaz.com/" target="_blank">站长素材</a></p>
</div>
</body>
</html>